import  {xsEntity} from '../commentity';
import { Column ,Entity ,ManyToOne} from 'typeorm';
import { NovelEntity } from '../novel/novel';

/**
 * 描述
 */
@Entity()
export class NovelPartEntity extends xsEntity {
  @ManyToOne(() => NovelEntity, NovelEntity => NovelEntity.novels)
  Pid: NovelEntity;
  @Column({ comment: '文章标题' })
  articleTitle: string;
  @Column({ comment: '文章内容' , type:"longtext" })
  articleContent: string;
  @Column({ comment: '浏览量' })
  Views: string;

  @Column({ comment: '是否收费' })
  status: boolean;

  @Column({ comment: '停留时间 一对多' })
  residenceTime: string;
  @Column({ comment: '评论' })
  comment: string;
}
